package com.lehoon.tomato.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author wang
 * @since 2020-09-23
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class StoreApply extends Model<StoreApply> {

    private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 用户名
     */
    private String username;

    private String password;

    /**
     * 电话
     */
    private String phone;

    /**
     * 寝室id
     */
    private Integer bedroomId;

    /**
     * 具体地址
     */
    private String address;

    private Integer userId;

    /**
     * 状态：0）申请中，1）申请通过
     */
    private Integer state;

    /**
     * 创建时间
     */
    private Integer createTime;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
